/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*-  */
/*
 * main.cc
 * Copyright (C) 2013 Ryan Grinkewitz <graphite@Toto>
 * 
 */

#include <iostream>
#include "sprite-manager.h"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include <string>
#include "constants.h"
#include "game-loop.h"


//Init function curtesy of www.lazyfoo.net
//bool init()
//{
    //Initialize all SDL subsystems
//    if( SDL_Init( SDL_INIT_EVERYTHING ) == -1 )
//    {
//        return false;
//    }

    //Set up the screen
//    main_screen = SDL_SetVideoMode( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE );

    //If there was an error in setting up the screen
//    if( main_screen == NULL )
//    {
//        return false;
//    }

    //Set the window caption
//    SDL_WM_SetCaption( "CatchIt", NULL );

	
    //If everything initialized fine
//    return true;
//}

int main()
{

	
	//init();
	GameLoop* gameLoop = new GameLoop();
	
	gameLoop->loopGame();
	
//	SpriteManager* spriteManager = new SpriteManager();
	//spriteManager->loadSpriteSheet("test", 16, 16);
//	spriteManager->displaySpriteSheetTest(screen, SCREEN_WIDTH, SCREEN_HEIGHT);
	
	return 0;
}

